package com.wctj.api.base.constant;

/**
 *
 * @author lzg
 */
public class JwtConstant {


    public static final String CLAIMS_NAME_USERNAME = "username";
    public static final String CLAIMS_NAME_USER_ID = "userId";
    public static final String CLAIMS_NAME_IS_ADMIN = "isAdmin";
    public static final String CLAIMS_NAME_SYSTEM_CODE = "systemCode";
    public static final String CLAIMS_NAME_GROUP_ID= "groupId";
    public static final String CLAIMS_NAME_CREATED = "created";
    public static final String CLAIMS_NAME_AID = "aid";
    public static final String CLAIMS_NAME_BID = "bid";
    public static final String CLAIMS_NAME_VAR1 = "BST_ID";
    public static final String CLAIMS_NAME_VAR2 = "platform";
    public static final String CLAIMS_NAME_VAR3 = "var3";

    /**
     * Authorization
     */
    public static final String HEADER_TOKEN_CODE = "Authorization";
    public static final String HEADER_USERIP_CODE = "X-userIP";
    public static final String HEADER_NAME_USER_ID = "X-userId";
    public static final String HEADER_NAME_USERNAME = "X-username";
    public static final String HEADER_NAME_IS_ADMIN = "X-isAdmin";
    public static final String HEADER_NAME_SYSTEM_CODE = "X-systemCode";
    public static final String HEADER_NAME_SYSTEM_VALUE_DEFAULT = "MALL";
    public static final String HEADER_NAME_GROUP_ID= "X-groupId";
    public static final String HEADER_NAME_CREATED = "X-created";

    public static final String HEADER_NAME_AID = "X-aid";
    public static final String HEADER_NAME_BID = "X-bid";
    public static final String HEADER_NAME_VAR1 = "X-BST_ID";
    public static final String HEADER_NAME_VAR2 = "X-platform";
    public static final String HEADER_NAME_VAR3 = "X-var3";



    public static final String TOKEN_PREFIX = "Bearer ";



    /**
     *  终端请求头
     */
    public final static String HEADER_PLATFORM = "X-platform";
    public static final String HEADER_X_CAPTCHAID = "X-captchaId";

}
